import { panelMgr } from "./panelMgr";
import { sceneMgr } from "./sceneMgr";
import { DataMgr } from "../Data/DataMgr";
import { netService } from "../netServices/netServices";

const { ccclass, property } = cc._decorator;

@ccclass
export default class GameInit extends cc.Component {
    onLoad() {
        panelMgr.Ins().init();
        DataMgr.Ins().init();
        this.DataInit();
        sceneMgr.Ins().init("main");
    }

    DataInit() {
        netService.Ins().init();
        netService.Ins().getPlayerData();
        netService.Ins().getWorldData();
    }
}
